<?php
$this->sendDebugMessage("chat model start");

//向本人发送准备状态
$response = new Response();
$response->event = "SE_CHAT_SUCCESS";
$response->body = '{"content":"'.$data->para->content.'","from":"'.$ip.'"}';
$this->sendData($ip,$response);

$user = $this->userCenter->userList[$ip];
$response->event = "SE_CHAT_UPDATE";
$this->broadcastGroup($response,$this->userCenter->roomList[$user->roomID]->tableList[$user->tableID]->getUserList(),array($ip));

$this->sendDebugMessage("chat model end");